﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PJ.Business.SalePurchase.Sale;
using PJ.Business.Partner;
using PJ.Business.SalePurchase;
using System.Collections;
using Microsoft.Dynamics.BusinessConnectorNet;
using PJ.Framework.DynamicsAX;

namespace PJ.Operation.SalePurchase
{
    public class CreateInvoiceResult : ICreateInvoiceResult
    {
        public string Id { get; set; }
        public double TotalAmount { get; set; }
        public byte[] PdfDocument { get; set; }
    }

    public abstract class AxCreateInvoice : AxOperation, ICreateSaleInvoice
    {

        public abstract ICreateInvoiceResult Execute(string partnerId, string reference, List<string> inventoryItemIds, List<double> quantities, List<string> units);
    }
}
